package com.itpan.Mapper;

import com.itpan.Entity.Customer;
import com.itpan.Entity.StatsByT;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;
import java.util.Stack;

@Mapper
public interface CustomerMapper {
    List<Customer> getall();

    List<Customer> getallPage(RowBounds rowBounds);



    Customer getById(@Param(value = "Id") String Id);


    List<Customer> getbyMutil(Customer customer);

    void addOne(Customer customer);

    void addAll(@Param(value = "list") List<Customer> list);

    void updateCustomerByID(Customer customer);

    void deleteById(@Param(value = "Id") String Id);

    List<StatsByT>countSuppliersByProvince ();


}
